﻿using System.Data.Entity;
using System.Data.Entity.Infrastructure;

namespace TeaLightV5.Foundation.Server.DataSchema
{
    public abstract class DbContextBase<TKey> : DbContext
    {
        protected DbContextBase(string nameOrConnectionString)
            : base(nameOrConnectionString)
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            throw new UnintentionalCodeFirstException();
        }

        public DbSet<DeletedRow<TKey>> DeletedRows { get; set; }
    }
}
